package com.service;
import java.util.List;

import com.model.Category;
import com.util.PageBean;

public interface CategoryService{
	
	//查询多条记录
	public List<Category> queryCategoryList(Category category,PageBean page) throws Exception;
 
	//添加
	public int insertCategory(Category category) throws Exception ;
	
	//根据ID删除
	public int deleteCategory(int id) throws Exception ;
	
	//更新
	public int updateCategory(Category category) throws Exception ;
	
	//根据ID查询单条数据
	public Category queryCategoryById(int id) throws Exception ;
	
	//得到记录总数
	int getCount(Category category);

}

